const {config} = require('./common')

const {api} = config
const {userManagerRole} = api

let database = [
    {
        "createTime": 1509948665000,
        "hierarchyId": "",
        "name": "ROLE_ADMIN",
        "description": "系统管理员",
        "updateTime": 1509948665000,
        "id": "3",
        "version": 0,
        "enabled": false
    }, {
        "createTime": 1509948665000,
        "hierarchyId": "1",
        "name": "ROLE_ANONYMOUS",
        "description": "匿名用户",
        "hierarchyName": "ROLE_USER",
        "updateTime": 1509948665000,
        "id": "0",
        "version": 0,
        "enabled": false
    }, {
        "createTime": 0,
        "hierarchyId": "3",
        "name": "ROLE_APP_ADMIN",
        "description": "后台管理员",
        "hierarchyName": "ROLE_ADMIN",
        "updateTime": 1490012949351,
        "id": "fd7969fabc9e4d17a9119e89888acb0a",
        "version": 4,
        "enabled": false
    }, {
        "createTime": 0,
        "hierarchyId": "3",
        "name": "ROLE_BUSINESS",
        "description": "商家",
        "hierarchyName": "ROLE_ADMIN",
        "updateTime": 1489848419111,
        "id": "eee53048166f462096a204235bd273c4",
        "version": 2,
        "enabled": false
    }, {
        "createTime": 0,
        "hierarchyId": "3",
        "name": "ROLE_BUSINESS_AUDITOR",
        "description": "业务审核员",
        "hierarchyName": "ROLE_ADMIN",
        "updateTime": 1490013247187,
        "id": "34470f370742478bbe882c7dfcdf490e",
        "version": 4,
        "enabled": false
    }, {
        "createTime": 1493739288966,
        "hierarchyId": "3",
        "name": "ROLE_BUSINESS_PC",
        "description": "PC商家端",
        "hierarchyName": "ROLE_ADMIN",
        "updateTime": 1493739288966,
        "id": "3e55362e1dbb4a8baa56c51f73f5fe3f",
        "version": 0,
        "enabled": false
    }, {
        "createTime": 1510815833818,
        "hierarchyId": "3",
        "name": "ROLE_CARRIER_COMPANY",
        "description": "物流系统-承运公司",
        "hierarchyName": "ROLE_ADMIN",
        "updateTime": 1510815885359,
        "id": "f178205afe79479095dc552de2761df7",
        "version": 1,
        "enabled": false
    }, {
        "createTime": 0,
        "hierarchyId": "3",
        "name": "ROLE_COMPENSATION_AUDITOR",
        "description": "补差审核员",
        "hierarchyName": "ROLE_ADMIN",
        "updateTime": 1490012843818,
        "id": "0eaad180291e47f58b9f403c22517e92",
        "version": 4,
        "enabled": false
    }, {
        "createTime": 0,
        "hierarchyId": "3",
        "name": "ROLE_CUSTOMER",
        "description": "客户",
        "hierarchyName": "ROLE_ADMIN",
        "updateTime": 1493124971949,
        "id": "c628c435a44a43869fe5582620522238",
        "version": 3,
        "enabled": false
    }, {
        "createTime": 0,
        "hierarchyId": "c0d9d2fbac4344e897d59f4cd364de26",
        "name": "ROLE_CUST_SERV_AFTER_SALE",
        "description": "售后客服",
        "hierarchyName": "ROLE_CUST_SERV_MANAGER",
        "updateTime": 1490014596869,
        "id": "198343630aef4edc9a5911981c4c27f7",
        "version": 7,
        "enabled": false
    }
];

module.exports = {
    [`GET ${userManagerRole}`](req, res) {
        res
            .status(200)
            .json(database)
    }
}
